home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / JComboBox$AccessibleJComboBox.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.2 KB  |  40 lines

  1. package javax.swing;
  2.  
  3. import javax.accessibility.AccessibleAction;
  4. import javax.accessibility.AccessibleRole;
  5.  
  6. public class JComboBox$AccessibleJComboBox extends JComponent.AccessibleJComponent implements AccessibleAction {
  7.    // $FF: synthetic field
  8.    private final JComboBox this$0;
  9.  
  10.    protected JComboBox$AccessibleJComboBox(JComboBox var1) {
  11.       super(var1);
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public boolean doAccessibleAction(int var1) {
  16.       if (var1 == 0) {
  17.          this.this$0.setPopupVisible(this.this$0.isPopupVisible() ^ true);
  18.          return true;
  19.       } else {
  20.          return false;
  21.       }
  22.    }
  23.  
  24.    public AccessibleAction getAccessibleAction() {
  25.       return this;
  26.    }
  27.  
  28.    public int getAccessibleActionCount() {
  29.       return 1;
  30.    }
  31.  
  32.    public String getAccessibleActionDescription(int var1) {
  33.       return var1 == 0 ? new String("togglePopup") : null;
  34.    }
  35.  
  36.    public AccessibleRole getAccessibleRole() {
  37.       return AccessibleRole.COMBO_BOX;
  38.    }
  39. }
  40.